package com.xy.smartplatfrom.mapper;

import com.xy.smartplatfrom.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    @Select(" select * from  sys_role where role_id=#{role_id} ")
    Role selectRoleById(Long id);
    @Select(" select * from  sys_role  ")
    List<Role> selectAllRoles();
}
